import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const state={
    loading:false,
}
const mutations={
    setLoading:function(state){
        state.loading=!state.loading
    },
}
const getters={
    loading:state=>state.loading,
}
export default new Vuex.Store({
    state,
    mutations,
    getters
})